#define _CRT_SECURE_NO_WARNINGS 1
struct ListNode* reverseList(struct ListNode* head)
{
    struct ListNode* RHead = NULL;
    struct ListNode* cur = head;
    while (cur != NULL)
    {
        struct ListNode* next = cur->next;
        cur->next = RHead;
        RHead = cur;
        cur = next;
    }
    return RHead;
}

